package com.autocode.generator.serve.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Haotchen
 * @since 2023-03-12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("menu")
@ApiModel(value = "Menu对象", description = "")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("业务主键ID")
    @TableField("menu_id")
    private Long menuId;

    @ApiModelProperty("菜单等级1,2,3")
    @TableField("menu_level")
    private Integer menuLevel;

    @ApiModelProperty("若为子级,对应父级菜单业务主键ID")
    @TableField("menu_part_id")
    private Long menuPartId;

    @ApiModelProperty("菜单名称")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty("菜单栏index值")
    @TableField("menu_index")
    private String menuIndex;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("创建人")
    @TableField("create_user")
    private String createUser;

    @ApiModelProperty("最后修改时间")
    @TableField("last_update_time")
    private String lastUpdateTime;

    @ApiModelProperty("最后修改人")
    @TableField("last_update_user")
    private String lastUpdateUser;

    @ApiModelProperty("是否为删除信息:1删除,0未删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("删除时间")
    @TableField("deleted_time")
    private Date deletedTime;


}
